#include "upload_server.h"
#include "escal.h"
#include "escal_settings.h"

using namespace Escal;

UploadServer::UploadServer(QObject* parent)
  : QTcpServer(NULL) {

}

UploadServer::~UploadServer() {
	if (server) server->deleteLater();
}

void UploadServer::incomingConnection ( int socketDescriptor) {
	qDebug() << "UploadServer::incomingConnection" << endl;
	UploadLinkManager *link = new UploadLinkManager(socketDescriptor);
	link->start();
};
